/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.purpose.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.purpose.bean.ResponsibilitiesLibBean;
import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

public interface ResponsibilitiesLibService {

    /**
     * 列表查询
     * @param item 职责项
     * @param cropCode 公司编码
     * @param status 状态(0-废弃 1-正常)
     * @param page
     * @param pageSize
     * @return
     */
    MessageBean queryForList(String item,String keyword, String cropCode, String status, Integer page, Integer pageSize);

    /**
     * 查询
     * @param id
     * @return
     */
    MessageBean queryById(String id);

    /**
     * 根据ID停用职责库
     * @param id
     * @return
     */
    MessageBean deleteById(String id);

    /**
     * 根据ID启用职责库
     * @param id
     * @return
     */
    MessageBean start(String id);

    /**
     * 新增职责库
     * @param user
     * @param bean
     * @return
     */
    MessageBean insert(StaffBean user, ResponsibilitiesLibBean bean);

    /**
     * 修改职责库
     * @param user
     * @param bean
     * @return
     */
    MessageBean update(StaffBean user, ResponsibilitiesLibBean bean);

    /**
     * 导入职责库
     * @param user
     * @param file
     * @return
     */
    MessageBean<String> importExcel(StaffBean user, MultipartFile file);
}
